<template>

  <!-- 路由组件渲染 -->
  <router-view @toggle="toggle"></router-view>

  <!-- 底部组件 -->
  <tab v-if="IsShow"></tab>

</template>
<script>
  import tab from '@/components/common/tab.vue'
  export default {
    components: {tab},
    data(){
      return {
        IsShow: true
      }
    },
    methods: {
      toggle(value){
        this.IsShow = value
      }
    }
  }
</script>